home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam16 / main.c < prev    next >
C/C++ Source or Header  |  1995-09-27  |  1KB  |  77 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. /*
  7.  *
  8.  *    This source code is CONFIDENTIAL and
  9.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  10.  *    distribution, adaptation or use    may
  11.  *    be subject to civil and    criminal penalties.
  12.  *
  13.  *    Copyright (c) 1993 Algorithms Corporation
  14.  *    3020 Liberty Hills Drive
  15.  *    Franklin, TN  37064
  16.  *
  17.  *    ALL RIGHTS RESERVED.
  18.  *
  19.  *
  20.  *
  21.  */
  22.  
  23.  
  24.  
  25. #include "generics.h"
  26.  
  27.  
  28. main(int argc, char *argv[])
  29. {
  30.     object    obj1, obj2;
  31.  
  32.     InitDynace(&argc);
  33.  
  34.     /*  Create two instances of the Class1 class.  Note the new arguments.
  35.         This is done to reflect the argument change performed on the
  36.         New method associated with the Class1 class.  See class1.d  */
  37.  
  38.     obj1 = gNewWithInt(Class2, 45);
  39.     obj2 = gNewWithInt(Class1, 36);
  40.  
  41.     /*  In order to insure the effectiveness of our new object's
  42.         initialization, print the code associated with each instance.  */
  43.         
  44.     printf("obj1's code = %d\n", gGetCode(obj1));
  45.     printf("obj2's code = %d\n", gGetCode(obj2));
  46.  
  47.     gDispose(obj1);
  48.     gDispose(obj2);
  49.  
  50.     return 0;
  51. }
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. /*
  60.  *
  61.  *    This source code is CONFIDENTIAL and
  62.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  63.  *    distribution, adaptation or use    may
  64.  *    be subject to civil and    criminal penalties.
  65.  *
  66.  *    Copyright (c) 1993 Algorithms Corporation
  67.  *    3020 Liberty Hills Drive
  68.  *    Franklin, TN  37064
  69.  *
  70.  *    ALL RIGHTS RESERVED.
  71.  *
  72.  *
  73.  *
  74.  */
  75.  
  76.  
  77.